package com.repast.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.repast.common.ServerResponse;
import com.repast.service.ICallWaitressService;

@Controller
@RequestMapping("/call/")
public class CallWaitressController {

	@Autowired
	private	ICallWaitressService callService;
	
	//呼叫服务员,占时只支持堂食类型,只有当前正在进行中的堂食订单,才能呼叫服务员
	@RequestMapping("call.do")
	@ResponseBody
	public ServerResponse callWaitress(String openid) throws Exception{
		return callService.callWaitress(openid);
	}	
}
